import apiY from './apiMapY.js'
import apiD from './apiMapD.js'

let apiOtherOne = {
  GET: {
    /**
     * 1. 首页
     */
    // 1.1 首页
    getIndexInitData: 'index',
      // 1.2 首页乘客评论
      getPassengerComments: 'index/comment',

        /**
         * 2. 用户
         */
        // 2.2 用户信息
        getUserInfo: 'driver/my',
  },

  POST: {
    /**
     * 9.注册登录
     */

    // 9.2 发送验证码
    sendVcode: 'account/register-phone',
      // 9.5 微信登录
    loginByWeixin: 'account/bind',
    //微信注册
    RegisterLoginByWeixin: 'account/register',
        // 9.6 手机号登录
        loginByPhoneNumber: 'account/login-phone',
  }
}

let get = Object.assign(apiOtherOne.GET, apiY.GET, apiD.GET)
let post = Object.assign(apiOtherOne.POST, apiY.POST, apiD.POST)

export default {
  GET:get,
  POST:post
}